<style tyle="text/css">
    .modal-lg {
        width: 60%;
    }
</style>
<div class="modal-header">
    <h4 class="modal-title">{{bean.company_name}}【{{bean.state == '1'? '活着': '封杀'}}】</h4>
</div>
<div class="modal-body">

    <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
        <div class="form-group">
            <h4 class="col-lg-4 control-label">
                最多分销层级
            </h4>
            <h4 class="col-sm-4">
                <input type="text" class="form-control" placeholder="分类名称" ng-model="bean.max_grade" ng-disabled="bean.state != '1'">
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-4 control-label">
                是否允许使用补贴
            </h4>
            <h4 class="col-sm-4">
                <div class="radio">
                    <label class="i-checks">
                        <input type="radio" ng-model="bean.subsidy_allow" ng-value="'1'" ng-disabled="bean.state != '1'">
                        <i></i>允许
                    </label>
                    <label class="i-checks" style="margin-left: 20px">
                        <input type="radio" ng-model="bean.subsidy_allow" ng-value="'0'" ng-disabled="bean.state != '1'">
                        <i></i>不允许
                    </label>
                </div>
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-4 control-label">
                补贴使用规则
            </h4>
            <h4 class="col-sm-4">
                <div class="radio">
                    <label class="i-checks">
                        <input type="radio" ng-model="bean.subsidy_rule" ng-value="'1'" ng-disabled="bean.state != '1'">
                        <i></i>可以跨店铺
                    </label>
                    <br />
                    <label class="i-checks mt5">
                        <input type="radio" ng-model="bean.subsidy_rule" ng-value="'0'" ng-disabled="bean.state != '1'">
                        <i></i>只能本店铺
                    </label>
                </div>
            </h4>
            <label class="control-label text-muted mt10">
                <i>本店领取的补贴，可以使用的规则</i>
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-4 control-label">
                是否允许领取补贴
            </h4>
            <h4 class="col-sm-4">
                <div class="radio">
                    <label class="i-checks">
                        <input type="radio" ng-model="bean.subsidy" ng-value="'1'" ng-disabled="bean.state != '1'">
                        <i></i>允许
                    </label>
                    <label class="i-checks" style="margin-left: 20px">
                        <input type="radio" ng-model="bean.subsidy" ng-value="'0'" ng-disabled="bean.state != '1'">
                        <i></i>不允许
                    </label>
                </div>
            </h4>
            <label class="control-label text-muted mt10">
            </label>
        </div>
        <div class="form-group">
            <h4 class="col-lg-4 control-label">
                手续费率
            </h4>
            <h4 class="col-sm-4">
                <input type="number" class="form-control" placeholder="分类名称" ng-model="bean.service_charge" min="0" max="999" ng-disabled="bean.state != '1'">
            </h4>
            <label class="control-label text-muted text-center">
                <span class="pull-left">手续费率，千分制，店铺提现时按此收费</span>
                <br />
                <span class="pull-left">例：千分之十，此处填写10</span>
            </label>
        </div>
    </form>

</div>

<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-click="ok()" ng-disabled="bean.state != '1'">确定</button>
    <button class="btn btn-danger" type="button" ng-click="close()">关闭</button>
</div>